package com.ludomancy.timescape;

import java.awt.Graphics;

import com.ludomancy.gamelib.ImageStrip;
import com.ludomancy.gamelib.ResourceManager;

public abstract class Entity
{
	public int initialTime = 0;
	public int tx, ty;
	
	public static final int SPRITE_PLANT = 0;
	public static final int SPRITE_WATER = 1;
	
	public static ImageStrip sprites;
	
	public Entity(int initialTime, int x, int y)
	{
		this.initialTime = initialTime;
		this.tx = x;
		this.ty = y;
		if(sprites == null)
		{
			sprites = new ImageStrip(ResourceManager.getImage("entities.png"), Game.TILE_SIZE, Game.TILE_SIZE);
		}
	}
	
	public abstract void evolve();
	public abstract void affectEnvironment();
	public abstract void reset();
	public abstract void paint(Graphics g);
}
